<?php
session_start();
include "config/identitas-situs.php";
include "config/tanggalan.php";
$id=$_GET['id'];
$q2=mysql_query("SELECT * FROM tb_pendaftar where no_pendaftaran='$id'");
$r2=mysql_fetch_array($q2);
$tgl_posting=tanggalan($r2[tanggal]);
$agama=mysql_fetch_array(mysql_query("SELECT * FROM tb_agama WHERE id_agama= '$r2[agama]'"));
if($r2[jk]=="1"){$jk ="Laki-Laki";}
else{$jk="Perempuan";}
$proli=mysql_fetch_array(mysql_query("SELECT * FROM tb_proli WHERE kd_proli='$r2[proli]'"));

?>
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> 
<title>Halaman lihat pendaftar <?php echo $title; ?></title>
<link rel="shortcut icon" href="images/fav.ico" />
<link href="config/style.css" type="text/css" rel="stylesheet" />
</head>
<center>
<br><b> Di bawah ini adalah data dari <?php echo $r2[nama]; ?></b><br /><br />
<table id="belang" width="400">
	<tr>
		<th align="left" width="170">No. Pendaftaran</th>
		<td><?php echo $r2['no_pendaftaran']; ?></td>
	</tr>
	<tr>
		<th align="left">Nama</th>
		<td><?php echo $r2[nama]; ?></td>
	</tr>
   <tr>
		<th align="left">Tempat, Tgl Lahir</th>
		<td><?php echo $r2['tmpt_lahir'].", ".tanggalan($r2['tgl_lahir']); ?></td>
	</tr>
        <tr>
		<th align="left">Agama</th>
		<td><?php echo $agama[agama]; ?></td>
	</tr>
     
	<tr>
		<th align="left">Jenis Kelamin</th>
		<td><?php echo $jk; ?></td>
	</tr>
	<tr>
		<th align="left">Nama Ortu</th>
		<td><?php echo $r2[nama_ortu]; ?></td>
	</tr>
	<tr>
		<th align="left">Alamat</th>
		<td><?php echo $r2[alamat]; ?></td>
	</tr>
	<tr>
		<th align="left">Asal Sekolah</th>
		<td><?php echo $r2[asal_sekolah]; ?></td>
	</tr>
	<tr>
		<th align="left">No Handphone</th>
		<td><?php echo $r2[no_hp]; ?></td>
	</tr>

	
 </table>
 <br>
 <input type="submit" name="button" id="button" value="Data tidak dapat diedit, silahkan keluar" onClick="javascript:window.close();">
 <br>
 </center>
 </body>
 </html>